// 账号

import request from '@/utils/request'

// WEB端登陆后选择企业列表
export function getAccountList(idcardnumber) {
  return request({
    url: '/public/ystEnterprise.do?action=list',
    method: 'post',
    params: {
      idcardtype: '10',
      idcardnumber
    }
  })
}

// 获取用户信息
export function getUser() {
  return request({
    url: '/org/user.do?action=getUser',
    method: 'post'
  })
}

// 获取token
export function getToken(username, userId) {
  return request({
    url: `/public/token.do?action=generate&username=${username}&userId=${userId}`,
    method: 'post'
  })
}
